Skip to content

Make the muted content attribute a fallback#12389

Merged
zcorpan merged 1 commit into
mainfrom
annevk/muted
May 5, 2026
Merged

Make the muted content attribute a fallback#12389
zcorpan merged 1 commit into
mainfrom
annevk/muted

Conversation

@annevk
Copy link
Copy Markdown
Member

@annevk annevk commented Apr 17, 2026

And align the muted getter with the :muted pseudo-class.

This also cleans up how we organize all the muted state. This removes the reliance on "creation-time" of the element which is completely bogus as whenever an element is created it has exactly 0 attributes.

Fixes #5013.

(See WHATWG Working Mode: Changes for more details.)


/media.html ( diff )

And align the muted getter with the :muted pseudo-class.

This also cleans up how we organize all the muted state. This removes the reliance on "creation-time" of the element which is completely bogus as whenever an element is created it has exactly 0 attributes.

Fixes #5013.
@zcorpan zcorpan merged commit cf4109f into main May 5, 2026
2 checks passed
@zcorpan zcorpan deleted the annevk/muted branch May 5, 2026 09:38
zcorpan pushed a commit to web-platform-tests/wpt that referenced this pull request May 5, 2026
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request May 12, 2026
…y on non-existing element creation-time, a=testonly

Automatic update from web-platform-tests
HTML: make muted attribute no longer rely on non-existing element creation-time

For whatwg/html#12389.

--

wpt-commits: 08e7b4ecd7d715f9d1c455073b650d3cdf3f4ff0
wpt-pr: 59322
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 14, 2026
…y on non-existing element creation-time, a=testonly

Automatic update from web-platform-tests
HTML: make muted attribute no longer rely on non-existing element creation-time

For whatwg/html#12389.

--

wpt-commits: 08e7b4ecd7d715f9d1c455073b650d3cdf3f4ff0
wpt-pr: 59322

UltraBlame original commit: 86b271d9c544682bbca787e3ce10ac026fc97eec
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 14, 2026
…y on non-existing element creation-time, a=testonly

Automatic update from web-platform-tests
HTML: make muted attribute no longer rely on non-existing element creation-time

For whatwg/html#12389.

--

wpt-commits: 08e7b4ecd7d715f9d1c455073b650d3cdf3f4ff0
wpt-pr: 59322

UltraBlame original commit: 86b271d9c544682bbca787e3ce10ac026fc97eec
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 14, 2026
…y on non-existing element creation-time, a=testonly

Automatic update from web-platform-tests
HTML: make muted attribute no longer rely on non-existing element creation-time

For whatwg/html#12389.

--

wpt-commits: 08e7b4ecd7d715f9d1c455073b650d3cdf3f4ff0
wpt-pr: 59322

UltraBlame original commit: 86b271d9c544682bbca787e3ce10ac026fc97eec
beckysiegel pushed a commit to chromium/chromium that referenced this pull request May 19, 2026
This follows these recent spec and test changes:
whatwg/html#12389
web-platform-tests/wpt#59322
whatwg/html#12428

Additional tests added in this CL.

Bug: 509570175
Change-Id: I90243d839c74e7ce69ebfea26d38b4f20bc4f333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7831199
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1632701}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request May 19, 2026
This follows these recent spec and test changes:
whatwg/html#12389
#59322
whatwg/html#12428

Additional tests added in this CL.

Bug: 509570175
Change-Id: I90243d839c74e7ce69ebfea26d38b4f20bc4f333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7831199
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1632701}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request May 19, 2026
This follows these recent spec and test changes:
whatwg/html#12389
#59322
whatwg/html#12428

Additional tests added in this CL.

Bug: 509570175
Change-Id: I90243d839c74e7ce69ebfea26d38b4f20bc4f333
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7831199
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1632701}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Media element muted attribute is checked at element creation time

2 participants